#include "book.h"

Book::Book() {}


Book::Book(const QString &name, const QString &publisher, const QString &author, const QString &ISBN, const QString &category, const QString &collectionLocation, int currentCollection, int allCollection) : name(name),
    publisher(publisher),
    author(author),
    ISBN(ISBN),
    category(category),
    collectionLocation(collectionLocation),
    currentCollection(currentCollection),
    allCollection(allCollection)
{}

QString Book::getName() const
{
    return name;
}

void Book::setName(const QString &newName)
{
    name = newName;
}

QString Book::getPublisher() const
{
    return publisher;
}

void Book::setPublisher(const QString &newPublisher)
{
    publisher = newPublisher;
}

QString Book::getAuthor() const
{
    return author;
}

void Book::setAuthor(const QString &newAuthor)
{
    author = newAuthor;
}

QString Book::getISBN() const
{
    return ISBN;
}

void Book::setISBN(const QString &newISBN)
{
    ISBN = newISBN;
}

QString Book::getCategory() const
{
    return category;
}

void Book::setCategory(const QString &newCategory)
{
    category = newCategory;
}

int Book::getCurrentCollection() const
{
    return currentCollection;
}

void Book::setCurrentCollection(int newCurrentCollection)
{
    currentCollection = newCurrentCollection;
}

int Book::getAllCollection() const
{
    return allCollection;
}

void Book::setAllCollection(int newAllCollection)
{
    allCollection = newAllCollection;
}

QString Book::getCollectionLocation() const
{
    return collectionLocation;
}

void Book::setCollectionLocation(const QString &newCollectionLocation)
{
    collectionLocation = newCollectionLocation;
}
